package com.example.mybatisplusdemo.constant;

public interface ApiConstants {

    interface CODE {
        /**
         * 成功
         */
        Integer SUCCESS = 200;

        /**
         * 成功，但是有警告
         */
        Integer SUCCESS_WARNING = 210;

        /**
         * 部分成功
         */
        Integer SUCCESS_PART = 220;

        /**
         * 失败
         */
        Integer FAIL = 700;

        /**
         * 错误
         */
        Integer ERROR = 710;

        /**
         * 异常
         */
        Integer EXECEPTION = 720;

        /**
         * 参数错误
         */
        Integer PARAM = 730;

        /**
         * 参数缺失
         */
        Integer PARAM_LEAK = 731;

        /**
         * 参数格式错误
         */
        Integer PARAM_FORMAT = 732;

        /**
         * 参数校验失败
         */
        Integer PARAM_VARIFY = 733;

        /**
         * 参数规则不匹配
         */
        Integer PARAM_REGULAR = 734;

        /**
         * 数据已存在
         */
        Integer REPEAT = 740;

        /**
         * 操作禁止
         */
        Integer FORBIDDEN = 750;

        /**
         * 未授权
         */
        Integer AUTH = 760;

        /**
         * 权限验证失败
         */
        Integer AUTH_FAIL = 761;

        /**
         * token验证失败
         */
        Integer AUTH_TOKEN = 762;

        /**
         * 已过期
         */
        Integer AUTH_EXPIRE = 763;

        /**
         * 权限禁止
         */
        Integer AUTH_FORBIDDEN = 764;

        /**
         * 未登陆
         */
        Integer AUTH_NOLOGIN = 765;

        /**
         * 用户不存在
         */
        Integer AUTH_NOUSER = 766;

        /**
         * 密码错误
         */
        Integer AUTH_WRONGPWD = 767;

        /**
         * 登录失败
         */
        Integer AUTH_LOGINFAIL = 768;

        /**
         * 禁止登录
         */
        Integer AUTH_LOGINFORBIDEN = 769;

        /**
         * 调用太频繁
         */
        Integer FREQUENT = 770;

        /**
         * 远程调用故障
         */
        Integer REMOTE = 780;

        /**
         * 远程调用失败
         */
        Integer REMOTE_FAIL = 781;

        /**
         * 远程调用错误
         */
        Integer REMOTE_ERROR = 782;

        /**
         * 远程调用异常
         */
        Integer REMOTE_EXECPTION = 783;

        /**
         * 远程调用发起失败
         */
        Integer REMOTE_LAUNCH = 784;

        /**
         * 远程调用超时
         */
        Integer REMOTE_TIMEOUT = 785;

        /**
         * 远程调用被拒绝
         */
        Integer REMOTE_REFUSE = 786;

        /**
         * 远程调用未知错误
         */
        Integer REMOTE_UNKNOWN = 789;

        /**
         * 系统故障
         */
        Integer SYS = 790;

        /**
         * 禁止调用
         */
        Integer SYS_ABANDON = 791;

        /**
         * 未知错误
         */
        Integer SYS_UNKNOWN = 799;

    }

    interface MSG {
        String SUCCESS = "成功";
        String SUCCESS_WARNING = "成功，但是有警告";
        String SUCCESS_PART = "部分成功";
        String FAIL = "失败";
        String ERROR = "错误";
        String EXECEPTION = "异常";

        String PARAM = "参数错误";
        String PARAM_LEAK = "参数缺失";
        String PARAM_FORMAT = "参数格式错误";
        String PARAM_VARIFY = "参数校验失败";
        String PARAM_REGULAR = "参数规则不匹配";

        String FORBIDDEN = "操作禁止";

        String AUTH = "未授权";
        String AUTH_FAIL = "权限验证失败";
        String AUTH_TOKEN = "登录信息验证失败";
        String AUTH_EXPIRE = "登录已过期，请重新登录";
        String AUTH_FORBIDDEN = "权限禁止";
        String AUTH_NOLOGIN = "未登陆";
        String AUTH_NOUSER = "用户不存在";
        String AUTH_WRONGPWD = "密码错误";
        String AUTH_LOGINFAIL = "登录失败";
        String AUTH_LOGINFORBIDEN = "禁止登录";

        String SYS = "系统故障";
        String SYS_UNKNOWN = "未知错误";
    }
}
